/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queenb.net.entitybean;

import java.io.Serializable;
import oracle.jdbc.OracleTypes;
import queenb.net.annotation.Mapping;
import queenb.net.datacontrol.DataControl;

/**
 *
 * @author VANANH
 */
public class N750 extends DataControl<N750> implements Serializable{
     @Mapping(name = "pn750", typeMapping = OracleTypes.INTEGER)
    private int pn750;
      @Mapping(name = "fn750", typeMapping = OracleTypes.INTEGER)
    private int fn750;
    @Mapping(name = "nv751", typeMapping = OracleTypes.CHAR)
    private String nv751;
    @Mapping(name = "nv752", typeMapping = OracleTypes.CHAR)
    private String nv752;
    @Mapping(name = "nv753", typeMapping = OracleTypes.CHAR)
    private String nv753;
    @Mapping(name = "nv754", typeMapping = OracleTypes.CHAR)
    private String nv754;
    
    @Mapping(name = "VAL", typeMapping = OracleTypes.INTEGER)
    private int val;
    @Mapping(name = "LABEL", typeMapping = OracleTypes.CHAR)
    private String label;
    
    private boolean selected;

    /**
     * @return the pn750
     */
    public int getPn750() {
        return pn750;
    }

    /**
     * @param pn750 the pn750 to set
     */
    public void setPn750(int pn750) {
        this.pn750 = pn750;
    }

    /**
     * @return the nv751
     */
    public String getNv751() {
        return nv751;
    }

    /**
     * @param nv751 the nv751 to set
     */
    public void setNv751(String nv751) {
        this.nv751 = nv751;
    }

    /**
     * @return the nv752
     */
    public String getNv752() {
        return nv752;
    }

    /**
     * @param nv752 the nv752 to set
     */
    public void setNv752(String nv752) {
        this.nv752 = nv752;
    }

    /**
     * @return the nv753
     */
    public String getNv753() {
        return nv753;
    }

    /**
     * @param nv753 the nv753 to set
     */
    public void setNv753(String nv753) {
        this.nv753 = nv753;
    }

    /**
     * @return the nv754
     */
    public String getNv754() {
        return nv754;
    }

    /**
     * @param nv754 the nv754 to set
     */
    public void setNv754(String nv754) {
        this.nv754 = nv754;
    }

    /**
     * @return the val
     */
    public int getVal() {
        return val;
    }

    /**
     * @param val the val to set
     */
    public void setVal(int val) {
        this.val = val;
    }

    /**
     * @return the label
     */
    public String getLabel() {
        return label;
    }

    /**
     * @param label the label to set
     */
    public void setLabel(String label) {
        this.label = label;
    }

    /**
     * @return the selected
     */
    public boolean isSelected() {
        if(fn750 != 0){
            selected = true;
        }else{
            selected = false;
        }
        System.out.println("---------------AAAAAAAA--" + selected);
        return selected;
    }

    /**
     * @param selected the selected to set
     */
    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    /**
     * @return the fn750
     */
    public int getFn750() {
        return fn750;
    }

    /**
     * @param fn750 the fn750 to set
     */
    public void setFn750(int fn750) {
        this.fn750 = fn750;
    }
}
